<%@page import="java.util.List"%>
<%@page import="br.com.maternity.classes.dao.MedicoDAO"%>
<%@page import="br.com.maternity.classes.entity.Medico"%>
<%@page import="java.util.ArrayList"%>
<%@page import="br.com.maternity.componentes.grid.*"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:include page="../cabecalho.jsp"></jsp:include>
<%
    String servletUrl = request.getContextPath() + "/listagemPacientes";
    if (request.getParameter("cadastrado") != null) {
        response.getWriter().write("<script>alert('Atendimento gerado com sucesso!');</script>");
    }

%>
<div id="titulo">Relatorio de Pacientes</div>
<br />
<div id="painel">
    <div id="filtro">

        <h1>Filtros de pesquisa de pacientes</h1>
        <br />
        <form id="frmPacientes" name="frmPacientes" method="POST">
            <table>
                <tr>
                    <td>RG</td>
                    <td>Nome</td>
                    <td></td>
                </tr>
                <tr>
                    <td><input type="text" id="txtRG" name="txtRG" maxlength="12" /></td>
                    <td><input type="text" id="txtNome" name="txtNome" maxlength="200" /></td>
                    <td><a class="botao" href="#" onclick="enviaForm('frmPacientes', '<%=servletUrl%>', 'listagem')">Pesquisar</a> </td>
                </tr>
            </table>
        </form>
    </div>
    <br />
    <div id="listagem"></div>
</div>
<br />
<br /> 
<a class="botao" href="../acoes/novoAtendimento.jsp">Novo Paciente</a>
<jsp:include page="../rodape.jsp"></jsp:include>